const express = require("express");
const router = express.Router();

const MySql = require("../lib/mysql");

router.post("/userEvaluate",async(req,res,next) => {



    const id = req.body.id;
    // const userId = req.body.user_id;
    const evaluate = req.body.evaluate;


        const resUpdate = await MySql.query('update user set evaluate = ? where id =?',[evaluate,id]);

        res.json({
            code:1,
            message:'evaluate更新成功',
        })
    

});

module.exports = router;